﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace InSTEDD.Labs.Geo.Locators
{
	public class Country
	{
		public string Name;
		public List<Polygon> Areas = new List<Polygon>();

		public Country(string name)
		{
			this.Name = name;
		}

		//todo refactor to composite area
		public bool Contains(PPoint test)
		{
			foreach (Polygon p in Areas)
			{
				if (p.Contains(test))
					return true;
			}
			return false;
		}
	}
}
